<!DOCTYPE html>
<style>#el0::first-letter, #el0:first-child { height: 100px;}</style>
This test passes if it doesn't crash.

<div id='tree' contentEditable><a><img><div id="el0" style="display: -webkit-inline-flex"><pre>AAAAA</pre></div></a></div>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

window.getSelection().selectAllChildren(document.getElementById('tree'));
document.execCommand('FormatBlock', false, '<h5>');
</script>
